import https from '@/plugins/luch-request_0.0.7/request'
/**
 * 微信支付统一下单
 * @param {*} data
 */
export const wxpayUnifiedorder = data => {
	return https.post('', data)
}

export const buyVip = data => {
	return https.post('/apihkds/api/user_vip/buy', data)
}
// 积分支付接口
export const pointsRecharge = data => {
	return https.post('/apihkds/api/shop/points/recharge', data)
}
// 支付接口
export const accountRecharge = data => {
	return https.post('/apihkds/api/shop/account/recharge', data)
}
// 商城支付接口
export const mallBuy = data => {
	return https.get('/api/v4/payment/change_payment', data)
}

// 钱包页面数据
export const getwallet = (data) => https.get('/apihkds/api/shop/account', data)

// 冻结资金账户
export const setfrozen = (data) => https.post('/apihkds/api/shop/account/unfreeze', data)

// 申请记录
export const getapplyrecord = (data) => https.get('/apihkds/api/shop/application/seller/log', data)

// 账户明细
export const getaccount = (data) => https.get('/apihkds/api/shop/seller/log', data)

// 资金明细
export const getcashlist = (data) => https.get('/apihkds/api/shop/merchants/log', data)

// 积分明细
export const getintergral = (data) => https.get('/apihkds/api/shop/points/log', data)

// 获取支付方式
export const getpayway = (data) => https.get('/apihkds/api/shop/payment', data)

// 用户提现认证未通过的信息
export const getrealname = (data) => https.get('/api/v4/realname', data)

// 用户提现认证信息提交
export const sendrealname = (data) => https.post('/api/v4/realname/store', data)

// 用户身份认证通过信息
export const getuserpass = (data) => https.get('/apihkds/api/shop/user/real/info', data)

// 用户提现提交操作
export const sendcashmay = (data) => https.post('/apihkds/api/shop/account/deposit', data)

// 我的任务信息
export const getmymission = (data) => https.get('/apihkds/api/task/list', data)

// Vip支付接口
export const getvippay = (data) => https.post('/apihkds/api/hkds/user/vip/buy', data)

export const payVIP = data => https.post('/apihkds/api/user_vip/buy', data)

export const getApplication = data => https.get('/apihkds/api/shop/application/seller/log', data)
// 我的钱包
export const getMyWallet = data => https.get('/apihkds/api/user/my-wallet', data)
